
{% extends "base2.html" %}

{% block title %}Log in{% endblock %}
{% block header %}Log in{% endblock %}
{% block content %}

    {% if form.is_valid %}
    <p> Username or password didn't work. Please enter them again </p>
    {% endif %}
    
    {{ form.non_field_errors }}

    <form method="post" action="">
    
    {% csrf_token %}
    
        <p>{{ form.username.errors }}
        	<label for="id_username">Username:
            </label>{{ form.username }}
        </p>
        
        <p>
        	{{ form.password.errors }}
        	<label for="id_password">Password:
            </label>{{ form.password }}
        </p>
        
        <input type="hidden" name="next"
            value="/" />
        <input type="submit" value="Log in" />
    </form>

{% endblock %}